package com.minsf.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.minsf.springbootinit.model.dto.questionSubmit.QuestionSubmitAddRequest;
import com.minsf.springbootinit.model.dto.questionSubmit.QuestionSubmitQueryRequest;
import com.minsf.springbootinit.model.entity.QuestionSubmit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.minsf.springbootinit.model.entity.User;
import com.minsf.springbootinit.model.vo.QuestionSubmitVo;

import javax.servlet.http.HttpServletRequest;

/**
* @author a
* @description 针对表【question_submit(题目提交)】的数据库操作Service
* @createDate 2024-01-03 09:35:32
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    Long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    QuestionSubmitVo grtQuestionSubmitVo(QuestionSubmit questionSubmit, HttpServletRequest request);

    Wrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);

    Page<QuestionSubmitVo> getQuestionSubmitVoPage(Page<QuestionSubmit> postPage, HttpServletRequest request);
}
